import React from 'react';

export interface DrawerContextProps {
  drawerDom: HTMLDivElement | null;
  pushDistance?: number | string;
  push: VoidFunction;
  pull: VoidFunction;
}

const DrawerContext = React.createContext<DrawerContextProps>({
  push: () => {},
  pull: () => {},
  drawerDom: null,
});

export default DrawerContext;
